\hypertarget{class_x_coil}{}\doxysection{XCoil类 参考}
\label{class_x_coil}\index{XCoil@{XCoil}}


{\ttfamily \#include $<$xcoil.\+h$>$}



类 XCoil 继承关系图\+:
% FIG 0


XCoil 的协作图\+:
% FIG 1
\doxysubsection*{信号}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{class_x_coil_ae52018d171ea7449edc1a769f0271c2d}{device\+Type\+Changed}} (\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType\+::\+Device\+Type}})
\item 
void \mbox{\hyperlink{class_x_coil_aa11e205320e02fd4178fd64233ed0295}{device\+Number\+Changed}} (int)
\item 
void \mbox{\hyperlink{class_x_coil_a56ce887d01023e07c9ab384be6612742}{object\+Type\+Changed}} (\mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType\+::\+Coil\+Object\+Type}})
\item 
void \mbox{\hyperlink{class_x_coil_a04d8019de36b388b17a0cbd4cffd2165}{object\+Number\+Changed}} (int)
\item 
void \mbox{\hyperlink{class_x_coil_a92ef3f8a96a88c133970e31a8b976201}{coil\+Value\+Changed}} (bool)
\end{DoxyCompactItemize}
\doxysubsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_x_coil_a19d52b3271c8320c6cc8acb173e97d2c}{XCoil}} (QObject $\ast$parent=nullptr)
\item 
\mbox{\hyperlink{class_x_coil_a7c2d8dd95687ab287d7e6110b266e045}{$\sim$\+XCoil}} ()
\item 
\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType\+::\+Device\+Type}} \mbox{\hyperlink{class_x_coil_af4f867b14cda61910a75dd022b7c6e74}{get\+Device\+Type}} () const
\item 
void \mbox{\hyperlink{class_x_coil_a0e6cff3ae58f31bcbc6f75436d0f2d54}{set\+Device\+Type}} (\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType\+::\+Device\+Type}})
\item 
int \mbox{\hyperlink{class_x_coil_aae86bc7fe1c9ba012e2fcc622b4774ae}{get\+Device\+Number}} () const
\item 
void \mbox{\hyperlink{class_x_coil_abd56f07226b2b179e0675674c7eb8ac1}{set\+Device\+Number}} (int)
\item 
\mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType\+::\+Coil\+Object\+Type}} \mbox{\hyperlink{class_x_coil_af48fb9993bda9cb7fe5e1d69a274ae67}{get\+Object\+Type}} () const
\item 
void \mbox{\hyperlink{class_x_coil_a2c29988422c4c4a5f3dc1a6f78b0a374}{set\+Object\+Type}} (\mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType\+::\+Coil\+Object\+Type}})
\item 
int \mbox{\hyperlink{class_x_coil_afd3d82b1a2d84142e8b4fc36eb7b08d4}{get\+Object\+Number}} () const
\item 
void \mbox{\hyperlink{class_x_coil_ac75e80ccf9c2c4db3671566159fe8570}{set\+Object\+Number}} (int)
\item 
bool \mbox{\hyperlink{class_x_coil_a0949d6d92c6235d985e1aef33625e15b}{get\+Coil\+Value}} () const
\item 
void \mbox{\hyperlink{class_x_coil_ab8f5b5332cf9fc2a19ad6e18af05ed1b}{set\+Coil\+Value}} (bool)
\end{DoxyCompactItemize}
\doxysubsection*{属性}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType\+::\+Device\+Type}} \mbox{\hyperlink{class_x_coil_a9e440bf1726dff1a7525fcd765801548}{device\+Type}}
\begin{DoxyCompactList}\small\item\em the type of the device \end{DoxyCompactList}\item 
int \mbox{\hyperlink{class_x_coil_a2df9a45d4e6372f833d4b6cfca7f3bcc}{device\+Number}}
\begin{DoxyCompactList}\small\item\em the number of the device \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType\+::\+Coil\+Object\+Type}} \mbox{\hyperlink{class_x_coil_ad57506c2ff0a0a0e51de090d54e44711}{object\+Type}}
\begin{DoxyCompactList}\small\item\em the type of the object \end{DoxyCompactList}\item 
int \mbox{\hyperlink{class_x_coil_a4383aa8ef4ebdd6d6fa934336160e0ab}{object\+Number}}
\begin{DoxyCompactList}\small\item\em the number of the object \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_x_coil_a0d16fae2b36cad87ef874b64e0b59e33}{coil\+Value}}
\begin{DoxyCompactList}\small\item\em the value of the coil \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Private 属性}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_x_coil_private}{XCoil\+Private}} $\ast$ \mbox{\hyperlink{class_x_coil_a820eb9dc488ae2d6fcc39c4f46519a12}{x\+CoilP}}
\end{DoxyCompactItemize}


\doxysubsection{构造及析构函数说明}
\mbox{\Hypertarget{class_x_coil_a19d52b3271c8320c6cc8acb173e97d2c}\label{class_x_coil_a19d52b3271c8320c6cc8acb173e97d2c}} 
\index{XCoil@{XCoil}!XCoil@{XCoil}}
\index{XCoil@{XCoil}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{XCoil()}{XCoil()}}
{\footnotesize\ttfamily XCoil\+::\+XCoil (\begin{DoxyParamCaption}\item[{QObject $\ast$}]{parent = {\ttfamily nullptr} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}

\mbox{\Hypertarget{class_x_coil_a7c2d8dd95687ab287d7e6110b266e045}\label{class_x_coil_a7c2d8dd95687ab287d7e6110b266e045}} 
\index{XCoil@{XCoil}!````~XCoil@{$\sim$XCoil}}
\index{````~XCoil@{$\sim$XCoil}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{$\sim$XCoil()}{~XCoil()}}
{\footnotesize\ttfamily XCoil\+::$\sim$\+XCoil (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\doxysubsection{成员函数说明}
\mbox{\Hypertarget{class_x_coil_a92ef3f8a96a88c133970e31a8b976201}\label{class_x_coil_a92ef3f8a96a88c133970e31a8b976201}} 
\index{XCoil@{XCoil}!coilValueChanged@{coilValueChanged}}
\index{coilValueChanged@{coilValueChanged}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{coilValueChanged}{coilValueChanged}}
{\footnotesize\ttfamily void XCoil\+::coil\+Value\+Changed (\begin{DoxyParamCaption}\item[{bool}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}

\mbox{\Hypertarget{class_x_coil_aa11e205320e02fd4178fd64233ed0295}\label{class_x_coil_aa11e205320e02fd4178fd64233ed0295}} 
\index{XCoil@{XCoil}!deviceNumberChanged@{deviceNumberChanged}}
\index{deviceNumberChanged@{deviceNumberChanged}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{deviceNumberChanged}{deviceNumberChanged}}
{\footnotesize\ttfamily void XCoil\+::device\+Number\+Changed (\begin{DoxyParamCaption}\item[{int}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}

\mbox{\Hypertarget{class_x_coil_ae52018d171ea7449edc1a769f0271c2d}\label{class_x_coil_ae52018d171ea7449edc1a769f0271c2d}} 
\index{XCoil@{XCoil}!deviceTypeChanged@{deviceTypeChanged}}
\index{deviceTypeChanged@{deviceTypeChanged}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{deviceTypeChanged}{deviceTypeChanged}}
{\footnotesize\ttfamily void XCoil\+::device\+Type\+Changed (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType\+::\+Device\+Type}}}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}

\mbox{\Hypertarget{class_x_coil_a0949d6d92c6235d985e1aef33625e15b}\label{class_x_coil_a0949d6d92c6235d985e1aef33625e15b}} 
\index{XCoil@{XCoil}!getCoilValue@{getCoilValue}}
\index{getCoilValue@{getCoilValue}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{getCoilValue()}{getCoilValue()}}
{\footnotesize\ttfamily bool XCoil\+::get\+Coil\+Value (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

\mbox{\Hypertarget{class_x_coil_aae86bc7fe1c9ba012e2fcc622b4774ae}\label{class_x_coil_aae86bc7fe1c9ba012e2fcc622b4774ae}} 
\index{XCoil@{XCoil}!getDeviceNumber@{getDeviceNumber}}
\index{getDeviceNumber@{getDeviceNumber}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{getDeviceNumber()}{getDeviceNumber()}}
{\footnotesize\ttfamily int XCoil\+::get\+Device\+Number (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

\mbox{\Hypertarget{class_x_coil_af4f867b14cda61910a75dd022b7c6e74}\label{class_x_coil_af4f867b14cda61910a75dd022b7c6e74}} 
\index{XCoil@{XCoil}!getDeviceType@{getDeviceType}}
\index{getDeviceType@{getDeviceType}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{getDeviceType()}{getDeviceType()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType\+::\+Device\+Type}} XCoil\+::get\+Device\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

\mbox{\Hypertarget{class_x_coil_afd3d82b1a2d84142e8b4fc36eb7b08d4}\label{class_x_coil_afd3d82b1a2d84142e8b4fc36eb7b08d4}} 
\index{XCoil@{XCoil}!getObjectNumber@{getObjectNumber}}
\index{getObjectNumber@{getObjectNumber}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{getObjectNumber()}{getObjectNumber()}}
{\footnotesize\ttfamily int XCoil\+::get\+Object\+Number (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

\mbox{\Hypertarget{class_x_coil_af48fb9993bda9cb7fe5e1d69a274ae67}\label{class_x_coil_af48fb9993bda9cb7fe5e1d69a274ae67}} 
\index{XCoil@{XCoil}!getObjectType@{getObjectType}}
\index{getObjectType@{getObjectType}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{getObjectType()}{getObjectType()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType\+::\+Coil\+Object\+Type}} XCoil\+::get\+Object\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

\mbox{\Hypertarget{class_x_coil_a04d8019de36b388b17a0cbd4cffd2165}\label{class_x_coil_a04d8019de36b388b17a0cbd4cffd2165}} 
\index{XCoil@{XCoil}!objectNumberChanged@{objectNumberChanged}}
\index{objectNumberChanged@{objectNumberChanged}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{objectNumberChanged}{objectNumberChanged}}
{\footnotesize\ttfamily void XCoil\+::object\+Number\+Changed (\begin{DoxyParamCaption}\item[{int}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}

\mbox{\Hypertarget{class_x_coil_a56ce887d01023e07c9ab384be6612742}\label{class_x_coil_a56ce887d01023e07c9ab384be6612742}} 
\index{XCoil@{XCoil}!objectTypeChanged@{objectTypeChanged}}
\index{objectTypeChanged@{objectTypeChanged}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{objectTypeChanged}{objectTypeChanged}}
{\footnotesize\ttfamily void XCoil\+::object\+Type\+Changed (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType\+::\+Coil\+Object\+Type}}}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}

\mbox{\Hypertarget{class_x_coil_ab8f5b5332cf9fc2a19ad6e18af05ed1b}\label{class_x_coil_ab8f5b5332cf9fc2a19ad6e18af05ed1b}} 
\index{XCoil@{XCoil}!setCoilValue@{setCoilValue}}
\index{setCoilValue@{setCoilValue}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{setCoilValue()}{setCoilValue()}}
{\footnotesize\ttfamily void XCoil\+::set\+Coil\+Value (\begin{DoxyParamCaption}\item[{bool}]{value }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_x_coil_abd56f07226b2b179e0675674c7eb8ac1}\label{class_x_coil_abd56f07226b2b179e0675674c7eb8ac1}} 
\index{XCoil@{XCoil}!setDeviceNumber@{setDeviceNumber}}
\index{setDeviceNumber@{setDeviceNumber}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{setDeviceNumber()}{setDeviceNumber()}}
{\footnotesize\ttfamily void XCoil\+::set\+Device\+Number (\begin{DoxyParamCaption}\item[{int}]{num }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_x_coil_a0e6cff3ae58f31bcbc6f75436d0f2d54}\label{class_x_coil_a0e6cff3ae58f31bcbc6f75436d0f2d54}} 
\index{XCoil@{XCoil}!setDeviceType@{setDeviceType}}
\index{setDeviceType@{setDeviceType}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{setDeviceType()}{setDeviceType()}}
{\footnotesize\ttfamily void XCoil\+::set\+Device\+Type (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType\+::\+Device\+Type}}}]{type }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_x_coil_ac75e80ccf9c2c4db3671566159fe8570}\label{class_x_coil_ac75e80ccf9c2c4db3671566159fe8570}} 
\index{XCoil@{XCoil}!setObjectNumber@{setObjectNumber}}
\index{setObjectNumber@{setObjectNumber}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{setObjectNumber()}{setObjectNumber()}}
{\footnotesize\ttfamily void XCoil\+::set\+Object\+Number (\begin{DoxyParamCaption}\item[{int}]{num }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_x_coil_a2c29988422c4c4a5f3dc1a6f78b0a374}\label{class_x_coil_a2c29988422c4c4a5f3dc1a6f78b0a374}} 
\index{XCoil@{XCoil}!setObjectType@{setObjectType}}
\index{setObjectType@{setObjectType}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{setObjectType()}{setObjectType()}}
{\footnotesize\ttfamily void XCoil\+::set\+Object\+Type (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType\+::\+Coil\+Object\+Type}}}]{type }\end{DoxyParamCaption})}



\doxysubsection{类成员变量说明}
\mbox{\Hypertarget{class_x_coil_a820eb9dc488ae2d6fcc39c4f46519a12}\label{class_x_coil_a820eb9dc488ae2d6fcc39c4f46519a12}} 
\index{XCoil@{XCoil}!xCoilP@{xCoilP}}
\index{xCoilP@{xCoilP}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{xCoilP}{xCoilP}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_x_coil_private}{XCoil\+Private}}$\ast$ XCoil\+::x\+CoilP\hspace{0.3cm}{\ttfamily [private]}}



\doxysubsection{属性说明}
\mbox{\Hypertarget{class_x_coil_a0d16fae2b36cad87ef874b64e0b59e33}\label{class_x_coil_a0d16fae2b36cad87ef874b64e0b59e33}} 
\index{XCoil@{XCoil}!coilValue@{coilValue}}
\index{coilValue@{coilValue}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{coilValue}{coilValue}}
{\footnotesize\ttfamily XCoil\+::coil\+Value\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}}



the value of the coil 

\begin{DoxySeeAlso}{参见}
indent 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_x_coil_a2df9a45d4e6372f833d4b6cfca7f3bcc}\label{class_x_coil_a2df9a45d4e6372f833d4b6cfca7f3bcc}} 
\index{XCoil@{XCoil}!deviceNumber@{deviceNumber}}
\index{deviceNumber@{deviceNumber}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{deviceNumber}{deviceNumber}}
{\footnotesize\ttfamily XCoil\+::device\+Number\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}}



the number of the device 

The default device\+Number is 1.

\begin{DoxySeeAlso}{参见}
indent 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_x_coil_a9e440bf1726dff1a7525fcd765801548}\label{class_x_coil_a9e440bf1726dff1a7525fcd765801548}} 
\index{XCoil@{XCoil}!deviceType@{deviceType}}
\index{deviceType@{deviceType}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{deviceType}{deviceType}}
{\footnotesize\ttfamily XCoil\+::device\+Type\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}}



the type of the device 

The default device\+Type is \mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4a29581c1f79d76f46af1a11ca6a3ee977}{XType\+::\+PLC}}.

\begin{DoxySeeAlso}{参见}
indent 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_x_coil_a4383aa8ef4ebdd6d6fa934336160e0ab}\label{class_x_coil_a4383aa8ef4ebdd6d6fa934336160e0ab}} 
\index{XCoil@{XCoil}!objectNumber@{objectNumber}}
\index{objectNumber@{objectNumber}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{objectNumber}{objectNumber}}
{\footnotesize\ttfamily XCoil\+::object\+Number\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}}



the number of the object 

The default object\+Number is 0.

\begin{DoxySeeAlso}{参见}
indent 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_x_coil_ad57506c2ff0a0a0e51de090d54e44711}\label{class_x_coil_ad57506c2ff0a0a0e51de090d54e44711}} 
\index{XCoil@{XCoil}!objectType@{objectType}}
\index{objectType@{objectType}!XCoil@{XCoil}}
\doxysubsubsection{\texorpdfstring{objectType}{objectType}}
{\footnotesize\ttfamily XCoil\+::object\+Type\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}}



the type of the object 

The default object\+Type is \mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162baafba8ff644db3c7472f2fae61e86b6f5}{XType\+::X}}.

\begin{DoxySeeAlso}{参见}
indent 
\end{DoxySeeAlso}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{xcoil_8h}{xcoil.\+h}}\item 
\mbox{\hyperlink{xcoil_8cpp}{xcoil.\+cpp}}\end{DoxyCompactItemize}
